#pragma once

#include <unordered_map>
#include <vector>

class TitleCnfgData;

class TitleCnfgTable
{
public:
	TitleCnfgTable();
	~TitleCnfgTable();

public:
	TitleCnfgData* GetTitleDataById(uint32_t id);


private:
	bool addToIndex(int32_t id, uint32_t idx);

private:
	std::vector<TitleCnfgData> m_content;
	std::unordered_map<uint32_t, int32_t> m_index;
	uint32_t m_max_count;
};